package cn.smile.bean.entity.basic;

import cn.smile.commons.domain.BaseDomain;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("member_info")
public class MemberInfo extends BaseDomain {
    @Serial
    private static final long serialVersionUID = -6430343792522279674L;

    /**
     * 店铺ID
     */
    private String shopId;

    /**
     * 会员号
     */
    private String memberNo;

    /**
     * 会员名
     */
    private String memberName;

    /**
     * 会员手机号
     */
    private String memberPhone;

    /**
     * 账户余额
     */
    private BigDecimal balance;

    /**
     * 赠送余额
     */
    private BigDecimal giftBalance;

    /**
     * 折扣率
     */
    private BigDecimal discount;

    /**
     * 数据版本
     */
    private Integer version;

    /**
     * 会员状态(-1: 未知, 1:启用, 2:冻结 )
     *
     * @see cn.smile.commons.enums.basic.MemberStatusEnum
     */
    private Integer status;
}
